package com.cyt.sys.service;

import com.cyt.base.model.dto.ReturnResult;

import com.cyt.sys.model.po.SysOrganization;
import com.cyt.sys.model.vo.SysOrganizationVo;

import java.util.List;


/**
 *@Author: liufu zhu
 *@Date: 2018-11-30 14:47
 *@Description:基础部分组织机构service接口类
 */

public interface SysOrganizationService extends BaseService<SysOrganization> {

    /**
     * @author: liufu zhu
     * @date: 2018/11/30 15:33
     * @Description:  组织机构list查询
     */
    public ReturnResult list(SysOrganizationVo sysOrganizationVo);


    /**
     * @author: liufu zhu
     * @date: 2018/11/30 17:48
     * @Description: 组织机构删除
     */
    public ReturnResult delete(String id);

    /**
     * @author: liufu zhu
     * @date: 2018/12/1 8:21
     * @Description:  编辑页面跳转
     */
    public SysOrganization selectById(String id);

    /**
     * @author: liufu zhu
     * @date: 2018/12/1 9:11
     * @Description:  保存/更新组织机构
     */
    public ReturnResult addOrUpdate(SysOrganizationVo sysOrganizationVo);

    /**
     *@Author: YuShengQiang
     *@Date: 2018-12-05 16:16
     *@Description:获取组织机构树
     */
    public ReturnResult dTreeList(SysOrganizationVo sysOrganizationVo);

    /**
     *@Author: YuShengQiang
     *@Date: 2018-12-05 15:54
     *@Description:查询对象集合
     */
    public List<SysOrganization> listExample(SysOrganizationVo sysOrganizationVo);
}
